import 'package:flutter/material.dart';
import 'package:mandoby/core/app_export.dart';
import 'package:nb_utils/nb_utils.dart';

import '../../../../core/utils/app_colors.dart';
import '../../../../core/widgets/custom_elevated_button.dart';
import '../pages/choose_college2_screen.dart';

class CustomDialog extends StatelessWidget {
  const CustomDialog({
    super.key,
  });

  @override
  Widget build(BuildContext context) {
    return Dialog(
      backgroundColor: AppColors.whiteA700,
      elevation: 1,
      clipBehavior: Clip.antiAlias,
      shape: RoundedRectangleBorder(
        borderRadius: BorderRadius.circular(16)
      ),
      child: Column(
        mainAxisSize: MainAxisSize.min,
        children: [

          ListTile(
            contentPadding: EdgeInsets.zero,

            leading: Image.asset("assets/images/cairo_logo.png"),title: Text(
            "كلية تجارة جامعة القاهرة",
            style: CustomTextStyles
                .font20whiteA700w400
                .copyWith(
              color: AppColors.black900,
            ),
          ),),
          20.hs,
          Text(
            "نسبة القبول بها 80%",
            style: CustomTextStyles.font32W700Black,
          ),
          20.hs,
          CustomElevatedButton(
            text: "التالي",
            onPressed: () {
              const ChooseACollege2Screen().launch(context);
            },
            margin:
            EdgeInsets.symmetric(horizontal: 70.w),
          ),
          20.hs,
          Row(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              Text(
                "اختر كلية اخرى",
                style: CustomTextStyles
                    .font20whiteA700w400
                    .copyWith(color: AppColors.black900),
              ),
              20.ws,
              Icon(
                Icons.arrow_forward,
                color: AppColors.primary,
              )
            ],
          ).onTap((){
            finish(context);
          }),
        ],
      ).paddingSymmetric(horizontal: 16.w,vertical: 30.h),
    );
  }
}